package com.wangcanxuan.www.po;

import com.wangcanxuan.www.annotation.orm.Column;
import com.wangcanxuan.www.annotation.orm.PrimaryKey;
import com.wangcanxuan.www.annotation.orm.Table;

import java.sql.Timestamp;

/**
 * 部落实体类与数据库tribe表一一映射
 *
 * @author HHLJ
 * @date 2022/03/15
 */
@Table(tableName = "tribe")
public class Tribe {
    @PrimaryKey
    @Column(columnName = "id",description = "主键")
    private Integer id;

    @Column(columnName = "camp",description = "所属阵营（0为光明，1为黑暗）")
    private Integer camp;

    @Column(columnName = "tribe_name",description = "部落名")
    private String tribeName;

    @Column(columnName = "creator",description = "创建者")
    private String creator;

    @Column(columnName = "current_leader",description = "现任首领")
    private String currentLeader;

    @Column(columnName = "numbers",description = "人数")
    private Integer numbers;

    @Column(columnName = "combat_power",description = "战力")
    private Integer combatPower;

    @Column(columnName = "coins",description = "金币数")
    private Integer coins;

    @Column(columnName = "create_time",description = "创建时间")
    private Timestamp createTime;

    @Column(columnName = "tribe_level",description = "部落等级")
    private Integer tribeLevel;

    public Tribe() {
    }

    public Tribe(Integer id, Integer camp, String tribeName, String creator, String currentLeader, Integer numbers, Integer combatPower, Integer coins, Timestamp createTime, Integer tribeLevel) {
        this.id = id;
        this.camp = camp;
        this.tribeName = tribeName;
        this.creator = creator;
        this.currentLeader = currentLeader;
        this.numbers = numbers;
        this.combatPower = combatPower;
        this.coins = coins;
        this.createTime = createTime;
        this.tribeLevel = tribeLevel;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCamp() {
        return camp;
    }

    public void setCamp(Integer camp) {
        this.camp = camp;
    }

    public String getTribeName() {
        return tribeName;
    }

    public void setTribeName(String tribeName) {
        this.tribeName = tribeName;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getCurrentLeader() {
        return currentLeader;
    }

    public void setCurrentLeader(String currentLeader) {
        this.currentLeader = currentLeader;
    }

    public Integer getNumbers() {
        return numbers;
    }

    public void setNumbers(Integer numbers) {
        this.numbers = numbers;
    }

    public Integer getCombatPower() {
        return combatPower;
    }

    public void setCombatPower(Integer combatPower) {
        this.combatPower = combatPower;
    }

    public Integer getCoins() {
        return coins;
    }

    public void setCoins(Integer coins) {
        this.coins = coins;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Integer getTribeLevel() {
        return tribeLevel;
    }

    public void setTribeLevel(Integer tribeLevel) {
        this.tribeLevel = tribeLevel;
    }

    @Override
    public String toString() {
        return "Tribe{" +
                "id=" + id +
                ", camp=" + camp +
                ", tribeName='" + tribeName + '\'' +
                ", creator='" + creator + '\'' +
                ", currentLeader='" + currentLeader + '\'' +
                ", numbers=" + numbers +
                ", combatPower=" + combatPower +
                ", coins=" + coins +
                ", createTime=" + createTime +
                ", tribeLevel=" + tribeLevel +
                '}';
    }
}
